package calao.client;

import java.util.HashMap;

import com.google.gwt.user.client.rpc.IsSerializable; 

public class MemberInfo 
implements IsSerializable 
{

	long guid;
	String alias;
	String password;
	String email;
	String name;
	int[] profiles = {};
	boolean inactive;
	
	/**
	 * @gwt.typeArgs <java.lang.String,java.lang.String>
	 */
	HashMap properties;
	
	public MemberInfo() { }
	
	public MemberInfo(long guid)
	{
		this.guid = guid;
	}
		
	/** Gets member name.
	 */
	public String getName()
	{
		return name;
	}

	/** Gets member profiles.
	 */
	public int[] getProfiles()
	{
		return profiles;
	}
	
	/** Gets member properties.
	 */
	public HashMap getProperties()
	{
		return properties;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setProfiles(int[] profiles) {
		this.profiles = profiles;
	}

	public void setProperties(HashMap properties) {
		this.properties = properties;
	}
	
	public long getGlobalUserId()
	{
		return guid;
	}
	
	public void setProperty(String name, String value)
	{
		if (properties==null) properties = new HashMap();
		properties.put(name, value);
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean isInactive() {
		return inactive;
	}

	public void setInactive(boolean inactive) {
		this.inactive = inactive;
	}
		
}
